<?php

class Application_Model_DbTable_ExplicitCatan extends Zend_Db_Table_Abstract {

    protected $_name = 'explicit_catan';
    //protected $_dependentTables = array('Application_Model_DbTable_ExplicitCatanKnight');
    //protected $_dependentTables = array('Application_Model_DbTable_ExplicitCatanStreet');
    //protected $_dependentTables = array('Application_Model_DbTable_ExplicitCatanPoints');


    protected $_referenceMap = array(
        'GameType' => array(
            'columns' => 'type_id',
            'refTableClass' => 'Application_Model_DbTable_ExplicitCatanType',
            'refColumns' => 'id',
            'onUpdate' => self::CASCADE),
        'User' => array(
            'columns' => 'winner_id',
            'refTableClass' => 'Application_Model_DbTable_User',
            'refColumns' => 'id',
            'onUpdate' => self::CASCADE
        )
    );

}

